-
Home
-
Smush Image Optimization – Optimize Images | Compress & Lazy Load Images | Convert WebP & AVIF | Image CDN
-
3.18.1 (latest)
-
Code
-
Classes
- WebP
Total Complexity |
127 |
Dependencies |
5 |
Dependents |
1 |
Total lines |
938 |
Lines of code |
470 |
Logical lines of code |
265 |
Comment lines |
331 |
Methods |
26 |
Properties |
3 |
Methods 26
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
convert_to_webp() |
B |
38 |
17 |
72 |
delete_images() |
A |
49 |
10 |
30 |
get_upload_dir() |
A |
47 |
8 |
36 |
save_htaccess() |
A |
47 |
7 |
37 |
check_server_config() |
A |
47 |
7 |
36 |
create_test_files() |
S |
53 |
7 |
23 |
get_server_type() |
S |
54 |
7 |
21 |
unsave_htaccess() |
S |
58 |
6 |
15 |
maybe_show_notices() |
S |
57 |
6 |
15 |
can_be_converted() |
S |
63 |
6 |
10 |
get_is_configured_with_error_message() |
S |
60 |
5 |
13 |
is_htaccess_written() |
S |
60 |
5 |
12 |
should_be_converted() |
S |
60 |
5 |
12 |
toggle_webp() |
S |
57 |
4 |
17 |
get_webp_file_path() |
S |
61 |
3 |
12 |
get_htaccess_file() |
S |
61 |
3 |
12 |
get_apache_code() |
S |
53 |
2 |
25 |
get_nginx_code() |
S |
53 |
2 |
23 |
should_resmush() |
S |
71 |
3 |
6 |
is_configured() |
S |
69 |
3 |
7 |
delete_all() |
S |
67 |
2 |
8 |
marker_line() |
S |
69 |
2 |
7 |
get_apache_code_to_print() |
S |
68 |
2 |
7 |
get_htaccess_locations() |
S |
69 |
2 |
7 |
init() |
S |
79 |
2 |
4 |
marker_suffix() |
S |
82 |
1 |
3 |